<?php
require_once 'application/library/encrypt/AES.php';
/** 
 * encryptionHelper
 * @author    Soochow University
 * @version   1.0
 * @exclude   作  成  日：2011/04/07
 */
class encryptionHelper{
    
    /**
     * 乱数化
     * getHash
     * @param   string  $value
     * @return  string
     */
    public static function getHash($value){
        return md5($value);
    }
    
    /**
     * 暗号化
     * encryptionByAec
     * @param   string  $value
     * @return  string
     */
    public static function encryptionByAes($value){
        $aes = new AES();
        return $aes->getEncryptString($value);
    }
    
    /**
     * 逆暗号化
     * decryptByAec
     * @param   string  $value
     * @return  string
     */
    public static function decryptByAes($value){
        $aes=new AES();
        return $aes->getDecryptString($value);
    }
}

